package com.dries.portal.module.chat.enums;

import com.baomidou.mybatisplus.annotation.EnumValue;
import com.fasterxml.jackson.annotation.JsonValue;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;

/**
 * @Description: 消息类型
 * @Author ZSY
 * @createTime 2020/8/11 13:47
 */
@Getter
@AllArgsConstructor
@NoArgsConstructor
public enum MsgAction {

    HANDSHAKE_MSG(1001, "握手消息"),
    HEARTBEAT_MSG(1002, "心跳消息"),
    SINGED_MSG(1003, "签收消息"),
    NOTIFICATION_MSG(1004, "通知消息"),
    CHAT_MSG(2001, "私聊消息"),
    GROUP_CHAT_MSG(2002, "群聊消息");

    @EnumValue
    private Integer code;
    private String description;

    @JsonValue
    public String getDescription() {
        return description;
    }


}
